package com.test.order.controller;

import com.test.order.domain.po.Order;
import com.test.order.service.IOrderService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/order")
@RestController
@RequiredArgsConstructor
public class OrderController {
    private final IOrderService orderService;
    @GetMapping("/{id}")
    private Order findById(@PathVariable Long id) {
        return orderService.findById(id);
    }
}
